// JavaScript Document
function urlGo(_url,_new){
	if(_new == true){
		window.open(_url);
	}else{
		window.location.href = _url;
	}
}

function confirmUrl(_title,_url){
	if(confirm(_title)){
		window.location.href = _url;
	}
}

function confirmBack(_title){
	if(confirm(_title)){
		window.history.back();
	}
}

function isArray(_var) {
	return (_var instanceof Array);
} 

function isEmpty(_var){
	return (_var == undefined || _var === '' || _var === 0 || _var === '0' || _var === null || _var === false || (isArray(_var) &&
_var.length === 0));
}
function change_option(id_select,id_hide)
{
    var value = $("#"+id_select).val();
    if(value == 1)
        $("#"+id_hide).show("low");
    else
    {
        $("#"+id_hide).hide("low");
        $("#"+id_hide+" input").val("");
    }
}
